﻿<%@ Page Title="listado de Platos" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="listadoPlatos.aspx.cs" Inherits="Restaurante.listadoPlatos" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
         <p id="titulo"> Listados de Platos </p>
    </h2>

    <div class="contTabla">
        <asp:SqlDataSource ID="SqlPlatos" runat="server" 
            ConnectionString="<%$ ConnectionStrings:BarCafe %>" 
            ProviderName="<%$ ConnectionStrings:BarCafe.ProviderName %>" 
            SelectCommand="SELECT * FROM [Plato]"></asp:SqlDataSource>


       <asp:GridView ID="gvPlatos" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" 
            AllowSorting="True" DataKeyNames="Id_Plato" DataSourceID="SqlPlatos">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Id_Plato" HeaderText="Id_Plato" 
                    SortExpression="Id_Plato" InsertVisible="False" ReadOnly="True" />
                <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                    SortExpression="Descripcion" />
                <asp:BoundField DataField="Tamanio" HeaderText="Tamanio" 
                    SortExpression="Tamanio" />
                <asp:BoundField DataField="Valor" HeaderText="Valor" SortExpression="Valor" />
                <asp:BoundField DataField="Tiempo_Elaboracion" HeaderText="Tiempo_Elaboracion" 
                    SortExpression="Tiempo_Elaboracion" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        


    </div>
    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" 
        onclick="btnCancelar_Click" />
        
</asp:Content>